package com.gitee.srurl.core.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zxw
 * @date 2023/5/10 21:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdatePasswordDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = -2284994469658600573L;

    /**
     * 原始密码
     */
    @NotBlank(message = "原始密码不能为空")
    private String password;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
}
